package com.ruoyi.medical.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.domain.doctor.Consult;
import com.ruoyi.common.domain.doctor.Doctor;
import com.ruoyi.common.domain.doctor.Patient;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConsultOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 订单编号 */
    private String orderNo;

    /** 关联问诊ID */
    private Long consultId;

    /** 医生ID */
    private Long doctorId;

    /** 患者ID */
    private Long patientId;

    /** 咨询价格 */
    private BigDecimal price;

    /** 优惠金额 */
    private BigDecimal discount;

    /** 实付金额 */
    private BigDecimal actualAmount;

    /** 状态 */
    private Integer status;

    /** 支付方式 */
    private String payMethod;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    /** 删除标记 */
    private Integer del;

    /** 关联医生 */
    private Doctor doctor;

    /** 关联患者 */
    private Patient patient;

    private Consult consult;
}
